package com.keyword.statics;

public class static2Block {
	static int lengths;
	static String str="hello world!";

	
	static {
		System.out.println(static2Block.lengths);
		int i=10;
		System.out.println(i);	
	} 
	
	public static void print(Object obj){
		System.out.println(obj);
	}
	
	
	public static void main(String[]args){
		System.out.println("main:"+static2Block.lengths);/**outside place is ready to work */
	}
	
	static {
		static2Block.lengths=100;
		
		static2Block.print(static2Block.str);
	}
 
}
